#ifndef DEVICELISTVIEW_H
#define DEVICELISTVIEW_H

#include <QWidget>
#include <QTableView>
//#include "databasemanager.h"

namespace Ui {
class DeviceListView;
}

class DeviceListView : public QWidget
{
    Q_OBJECT

public:
    explicit DeviceListView(QWidget *parent = nullptr);
    ~DeviceListView();

private slots:
    void on_tableView_clicked(const QModelIndex &index);
    void on_addButton_clicked();
    void on_deleteButton_clicked();

private:
    Ui::DeviceListView *ui;
 //   DatabaseManager dbManager;
    void loadDevices();
};

#endif // DEVICELISTVIEW_H
